<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\DemoController;
use App\Http\Controllers\NoticeController;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::group(['prefix' => 'demo'], function () {
    Route::any("update",[DemoController::class,"update"]);
    Route::any("info",[DemoController::class,"info"]);
    Route::any("list",[DemoController::class,"list"]);
});

Route::group(['prefix' => 'notice'], function () {
    Route::any("sendCode",[NoticeController::class,"sendCode"]);
    Route::any("ipGeo",[NoticeController::class,"ipGeo"]);
});
